var express = require('express');
var router = express.Router();

router.get('/listhot', function (req, res, next) {
    var page = req.query.page;
    var ListHot = [];
    for (var i = 0; i < 10; i++) {
        ListHot.push({
            name: 'listhot' + (page * 100 + i),
            id: page
        })
    }
    res.send(ListHot);
});

router.get('/listnew', function (req, res, next) {
    var page = req.query.page;
    var ListHot = [{
        name: 'listnew' + page * 100,
        id: page
    }, {
        name: 'listnew' + page * 100 + 1,
        id: page + 1
    }
    ];
    res.send(ListHot);
});

router.get('/dianji', function (req, res, next) {
    console.log(req.headers.cookie);
    res.send('123');
});

module.exports = router;